/*
 * @Description:
 * @version:
 * @Author: m
 * @LastEditors: m
 */
import Vue from "vue";
import App from "./App.vue";

import router from "./router";

// 全局js
import global_ from "./utils/global";
Vue.prototype.GLOBAL = global_;

// 全局css
import "@/styles/index.scss";

Vue.config.productionTip = false;

Vue.config.devtools = true;

import { Toast, Loading, Field, Button, form, popup, picker, sticky, NavBar, Search } from "vant";
Vue.use(Toast);
Vue.use(Loading);
Vue.use(Field);
Vue.use(Button);
Vue.use(form);
Vue.use(popup);
Vue.use(picker);
Vue.use(sticky);
Vue.use(NavBar);
Vue.use(Search);

// 页面调试
import Vconsole from "vconsole";
if (process.env.NODE_ENV === "development") {
	new Vconsole();
}

new Vue({
	render: (h) => h(App),
	router,
	components: { App },
}).$mount("#app");
